const Path = require('path');

module.exports = function ({ content, path, option, fileInfo }) {
    const minify = require(Path.resolve(option.nmodulePath, './html-minifier')).minify;
    return minify(content, Object.assign({
        removeComments: true,
        collapseWhitespace: true,
        minifyJS: true,
        minifyCSS: true
    }, option.compiler.minify || {}));
};